added reverse playback and "bounce" looping (back and forth)#343
Open
ericsoco wants to merge 1 commit intoGamua:masterfrom
Open
added reverse playback and "bounce" looping (back and forth)#343ericsoco wants to merge 1 commit intoGamua:masterfrom
ericsoco wants to merge 1 commit intoGamua:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
added functionality to
MovieClipto allow reverse playback and "bounce" loop -- play forward and backward as a loop.both are fully compatible with
MovieClip's existing features. settingbounceLoop = truewill setloop = falseand settingloop = truewill setbounceLoop = false, since the two cannot both be true at once.reverseworks whether or notlooporbounceLoopare set.there are two commits in this pull request because i implemented these changes against an out-of-date version of
MovieClipand had to go back and reimplement them against the latest version. better to look at the MovieClip.as diff than to look through the individual commits.i haven't tested with your unit tests as i don't have that test suite set up, but i manually tested all the permutations of
loop,bounceLoop,reverse, and anEvent.COMPLETEhandler that i could come up with, and have been running with this code successfully for a couple of months now.